import { Routes, RouterModule }  from '@angular/router';

import { Sysmanagement } from './sysmanagement.component';
import { Competence } from './components/competence/competence.component';
import { Product } from './components/product/product.component';
import { Doormodel } from './components/doormodel/doormodel.component';


// noinspection TypeScriptValidateTypes
const routes: Routes = [
  {
    path: '',
    component: Sysmanagement,
    children: [
     
      { path: 'competence', component: Competence },
      { path: 'product', component: Product },
      { path: 'product/doormodel/:productId',component:Doormodel}
     
      
    ]
  }
];

export const routing = RouterModule.forChild(routes);
